package com.example.hy2110szyx.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户信息实体
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {
    private Integer id;
    private String uno;
    private String username;
    private String password;
    private Integer role;//0-客户,1-订票管理员,2-系统管理员
    private String phone;

    public UserInfo(String uno, String username, Integer role) {
        this.uno = uno;
        this.username = username;
        this.role = role;
    }
}
